package com.sbj.dto.res;

import cn.zhxu.bs.bean.DbField;
import cn.zhxu.bs.bean.SearchBean;
import lombok.Data;

import java.io.Serializable;

/**
 * @author summer
 * @version 1.0
 * @date 2024/8/11 20:55
 */
@Data
@SearchBean(tables = " address a",autoMapTo = "a",orderBy = "a.isDefault Desc")
public class AddressRes implements Serializable {

    @DbField("a.id")
    private Integer id;

    @DbField("a.address")
    private String address;

    @DbField("a.name")
    private String name;

    @DbField("a.phone")
    private String tel;



    @DbField("CONCAT(a.province,'-',a.city,'-',a.county,a.address)")
    private String newAddress;

    @DbField("a.deleted")
    private Integer deleted;

    @DbField("a.member_id")
    private Integer memberId;

    @DbField("a.county")
    private String county;

    @DbField("a.province")
    private String province;

    @DbField("a.city")
    private String city;

    @DbField("a.isDefault")
    private Boolean isDefault;
}
